package com.example.permission.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

@Entity
@Data
@IdClass(RoleMenuId.class)
@Table(name = "role_menu")
public class RoleMenu {
    @Id private Long roleId;
    @Id
    private Long menuId;
}

